﻿<%@ Page Language="C#" AutoEventWireup="true" 
CodeBehind="OrdenCompraEditForm.aspx.cs" 
Inherits="UILGestion.ObraAdmin.OrdenCompras.OrdenCompraEditForm" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>

<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/ComparativoItemSeleccionPanel.ascx" tagname="ComparativoItemSeleccionPanel" tagprefix="uc2" %>
<%--needed for WebMethods--%>
<%@ Import Namespace="System.Web.Script.Services" %>
<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../css/default.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/OrdenCompra.js" type="text/javascript"></script>
    <script src="../../Scripts/Util.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
        
         
        
</head>
<body>
    <form id="form1" runat="server"  autocomplete="off">
     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"  EnableScriptGlobalization="true"
     EnablePartialRendering="true"></asp:ToolkitScriptManager>
    
<uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
     <asp:Panel ID="pnlMain" runat="server" Visible="false"
       CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >
<asp:Label ID="titulo" runat="server" Text="EDITAR ORDEN DE COMPRA" 
             style="font-size: large; color: #960818"></asp:Label>
    </asp:Panel>
 <asp:Panel ID="PanelButtom" runat="server" Visible="false"    class="ms-crm-Form-Body" >
              
                

                   <table >
<tr>

<td>
    <asp:Button ID="saveButton" runat="server" Text="Guardar"  CssClass="ms-crm-List-Header"
     OnClientClick="return confirm('Desea Guardar el Registro?')"
       OnClick="btnSaveContinue_Click"     /></td>
<td>
    <asp:Button ID="cancelarButton" runat="server" Text="Cancelar"  CssClass="ms-crm-List-Header"
       OnClick="btnSaveContinue_Click"  /></td>
        <td></td>
        <td>
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer"  CssClass="ms-crm-List-Header"
          onclick="refreshButton_Click"    /></td>
 
</tr>
</table>
                
               
   </asp:Panel>
                
    <asp:Panel ID="PanelBody" runat="server" Visible="false" BackColor="white" >

      <input id="valorIGV" type="hidden" runat="server"/>
      <input id="idForm" type="hidden" runat="server"/>

      <input id="type" type="hidden" runat="server"/>
      <table >
      <tr>
      <td  align="left"       >
      <table >
          <tr>
              <td  align="right" width="100px" valign="top" >
                   Comparativo:</td>
              <td  width="350px" valign="top">
                  <asp:DropDownList ID="comparativoDDL" runat="server" Width="400px"  AutoPostBack="true"
                      onselectedindexchanged="comparativoDDL_SelectedIndexChanged" TabIndex="1">
                  </asp:DropDownList>
                  <br />
                  <asp:HyperLink ID="comparativoLinkButton" runat="server" ForeColor="Blue"></asp:HyperLink> -->
                  
                  Saldo:<asp:Label ID="SaldoComparativoLabel" runat="server"></asp:Label>
              </td>
              <td align="right" valign="top">
                  Forma de Pago:</td>
              <td valign="top">
                  <asp:DropDownList ID="formaPagoDDL" runat="server" Width="200px" TabIndex="4">
                  </asp:DropDownList>
              </td>
              
          </tr>
          <tr>
              <td align="right" width="100px"  valign="top">
                  Numero:
              </td>
              <td  width="350px" valign="top">
                  <asp:Label ID="numDocumentoLabel" runat="server"></asp:Label>
                  <input runat="server" id="internalid" type="hidden" name="internalid"/>
                  <input runat="server" id="idObra" type="hidden" name="idObra" />
                  <input runat="server" id="idComparativoProveedor" type="hidden"  name="idComparativoProveedor"/>
                  <input runat="server" id="idComparativo" type="hidden"  name="idComparativo"/>
                  <input runat="server" id="idAutorizado" type="hidden"  name="idAutorizado"/>
                  <input runat="server" id="idRevisado" type="hidden"  name="idRevisado"/>
                  <input runat="server" id="idobjectdsLabel" type="hidden"  name="idobjectdsLabel"/>
                 
              </td>
              <td align="right"  valign="top">
                  &nbsp;Partida:</td>
              <td valign="top"  >
                  <asp:DropDownList ID="estructuraDDL" runat="server" Width="200px" TabIndex="5">
                  </asp:DropDownList>
              </td>
          </tr>
          <tr>
              <td  align="right" width="100px" valign="top">
                   Fecha Emision: </td>
              <td  width="350px" valign="top" >
                   <asp:TextBox ID="fechaTextBox"   RunAt="Server"  Font-Size="X-Small"
                            Width="90px"    BackColor="Transparent" TabIndex="2" ></asp:TextBox>   
                            <asp:ImageButton runat="Server" 
                            ID="ImageButton1"  ImageUrl="../../../Images/month.gif"    
                       AlternateText="Click aqui para mostrar calendario" Width="16px" />
                     <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                     TargetControlID="fechaTextBox"  PopupButtonID="ImageButton1">
                      </asp:CalendarExtender>


              </td>
              <td   align="right" valign="top">
                   Moneda:</td>
              <td valign="top"  >
                  <asp:DropDownList ID="monedaDDL" runat="server" Width="200px" TabIndex="6" 
                      AutoPostBack="True" 
                      onselectedindexchanged="monedaDDL_SelectedIndexChanged">
                  </asp:DropDownList>
              </td>
              
          </tr>
          <tr valign="top">
              <td  align="right" width="100px" valign="top">
                   Proveedor:</td>
              <td valign="top"   >
                
                  <lib:Input ID="ProveedorTXT" runat="server" backcolor="#DFE8F6" 
                      DataType="List"  NumColum="2"
                      method="GetProveedor" onchange="javascript:validarProveedor(this);" 
                      OnSelect="SelectProveedor" Width="400px" TabIndex="3" />
                  
              </td>
              <td  align="right" valign="top">
                   &nbsp;T/C:<br />  </td>
              <td valign="top"  >
                  <asp:Label ID="tipoCambioLabel" runat="server"></asp:Label>
              </td>
              
          </tr>
          <tr>
              <td  align="right" width="100px" valign="top" >
                   RUC:</td><td valign="top">
                  <lib:Input ID="Proveedor1TXT" runat="server" BackColor="Transparent" 
                      ReadOnly="true"  width="0px"/>
                  <lib:Input ID="rucTXT" runat="server" BackColor="Transparent" ReadOnly="true" 
                      Width="200px" />
              </td>
              
              <td align="right" valign="top">
                  
                    <strong>OC Anticipo:</strong></td>
              <td valign="top" >
                  <asp:CheckBox ID="bitAnticipoChk" runat="server" ToolTip="7" />
              </td>
              
          </tr>
           <tr>
               <td align="right" width="100px" valign="top">
                    Contacto:</td><td valign="top">
                   
                   <lib:Input ID="contactoTXT" runat="server" Width="380px" ReadOnly="true"></lib:Input>
                   <lib:Input ID="idproveedorTXT" runat="server" ReadOnly="true" Width="0" />
               </td>
               <td align="right" valign="top">
                   Observación Impresa en Documento:</td>
               <td valign="top" rowspan="2">
                   <lib:Input ID="observacionTextBox" runat="server" TextMode="MultiLine" 
                       Width="200px" TabIndex="8" Height="50px" />
               </td>
          </tr>
          <tr>
              <td align="right" valign="top" width="100px">
                  Centro. Costo:</td>
              <td valign="top">
                  <asp:Label ID="centroCostoLabel" runat="server"></asp:Label>
              </td>
              <td align="right" valign="top" >
                  &nbsp;</td>
              <td valign="top">
                  &nbsp;</td>
          </tr>
          <tr>
              <td align="right" valign="top" width="100px">
                  Fecha Contratro:</td>
              <td valign="top">
                  <asp:Label ID="fechaContratoTextBox" runat="server"></asp:Label>
              </td>
              <td align="right" valign="top" rowspan="2">
                  Observación Interna
                  <br />
                  (Solo en&nbsp; el sistema):</td>
              <td valign="top" rowspan="2">
                  <lib:Input ID="observacionInternaTXT" runat="server" Height="50px" TabIndex="8" 
                      TextMode="MultiLine" Width="200px" />
              </td>
          </tr>
          <tr>
              <td align="right" valign="top" width="100px">
                  Fecha Entrega:</td>
              <td valign="top">
                  <asp:TextBox ID="fechaEntregaTextBox" RunAt="Server" BackColor="Transparent" 
                      Width="90px"></asp:TextBox>
                  <asp:CalendarExtender ID="CalendarExtender11" runat="server" 
                      PopupButtonID="ImageButton21" TargetControlID="fechaEntregaTextBox">
                  </asp:CalendarExtender>
                  <asp:ImageButton ID="ImageButton21" runat="Server" 
                      AlternateText="Click aqui para mostrar calendario" 
                      ImageUrl="~/Images/month.gif" Width="16px" />
              </td>
          </tr>
      </table>
      </td>
      <td   valign="top"   >

   <asp:UpdatePanel runat=server ID="panelTotal" UpdateMode="Conditional">
   <ContentTemplate>
    <input runat="server" id="simbol" type="hidden"  name="simbol"/>
   
      <table  class="PanelTotales" >
      
      <tr>
      <td  align="right" width="100px" >Sub Total:</td>
      <td align="right" ><asp:Label ID="subTotalTextBox" runat="server" ></asp:Label></td>
       
          <tr>
              <td align="right" >
                   
                  <asp:CheckBox ID="IGVCheckBox" runat="server" Enabled="false" />
                  IGV <asp:Label ID="IGVvalorLabel" runat="server"></asp:Label>%: 
                   </td>
              <td align="right" valign="100px">
                  <asp:Label ID="IGVLabel" runat="server" Width="85px" ></asp:Label>
                  <br />
                  
                  
              </td>
          </tr>
          <tr>
              <td align="right" >
                   Total: </td>
              <td align="right" valign="100px">
                  <asp:Label ID="totalLabel" runat="server"></asp:Label>
              </td>
          </tr>
          
       
      </tr>
      </table>
      
     
        </ContentTemplate>
                 </asp:UpdatePanel>
    <br />

       </td>

      </tr>
      </table>
     
      <asp:TabContainer ID="TabContainer1" runat="server"  ActiveTabIndex="0"  
          Width="100%" >
               
               <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Recursos" >
               <ContentTemplate>
                                
               <asp:UpdatePanel ID="itemUpdatePanel" runat="server" UpdateMode="Conditional">
               <ContentTemplate>
                <asp:Button ID="AddRecursos" runat="server" onclick="AddRecursos_Click" 
                            Text="Añadir Recursos" />
               <asp:LinkButton ID="Button2" runat="server" />
               
                               <asp:modalpopupextender ID="ModalAddPopupExtender" runat="server" 
                            BackgroundCssClass="modalBackground" 
                            cancelcontrolid="cancelarAddButton" 
                            dropshadow="True" 
                            DynamicServicePath="" 
                            Enabled="True" 
                            X="0" Y="0"
                            popupcontrolid="AddParent" 
                            popupdraghandlecontrolid="AddParentParent" 
                            targetcontrolid="Button2">
                                   

                                </asp:modalpopupextender>
                   
                  
                <asp:GridView ID="itemGridView" runat="server" 
                            DataKeyNames="idInternal,idComparativoItemSelecPrv" 
                            onrowcancelingedit="CancelEditItem" 
                            OnPageIndexChanging="OnPaging" 
                            onrowediting="EditItem" 
                            onrowupdating="UpdateItem" 
                            ShowFooter="true"
                            SkinID="GridView">
             
                    
 

             
             <Columns>
  
            <asp:TemplateField ControlStyle-Width="80px" HeaderStyle-Width="80px" 
                     HeaderText="CODIGO">
                

            <EditItemTemplate>
                

            <asp:Label ID="codigoEditTextBox" runat="server" BackColor="Transparent" 
                    Text='<%# Eval("codigo")%>' Width="80" />
                
                <lib:Input ID="idInsumoTXT" runat="server" BackColor="Transparent" 
            ReadOnly="true"  Width="0px"/>
                 </EditItemTemplate>
                              
 
<FooterTemplate>
    
<lib:Input ID="codigoTXT" runat="server" BackColor="Transparent" 
        ReadOnly="true" Width="65" />
         <lib:Input ID="insumo1TXT" runat="server" backcolor="Transparent" ReadOnly="true" Width="0px" />
            
                 </FooterTemplate>
                 
                

                <ItemTemplate>
                    

                    <asp:Label ID="codigoLabel" runat="server" Text='<%# Eval("codigo")%>' 
                        Width="80"></asp:Label>
                   
        
                    

                 </ItemTemplate>
                 
                
</asp:TemplateField>

<asp:TemplateField ControlStyle-Width="380px" HeaderStyle-Width="380px" HeaderText="DESCRIPCION">
   <EditItemTemplate>
     <lib:Input ID="descripcionEditTextBox" runat="server" Enabled="false" Text='<%# Eval("descripcion")%>' TextMode="MultiLine" Width="380" />
    </EditItemTemplate>
    
    <FooterTemplate>

      <lib:Input ID="insumoTXT" runat="server" backcolor="#DFE8F6" DataType="List"   TabIndex="20"
                      method="GetInsumo" onchange="javascript:validarRecurso(this);" OnSelect="SelectRecurso" Width="370px" />
     

    </FooterTemplate>
    
<ItemTemplate>
   <asp:Label ID="descripcionLabel" runat="server" 
        Text='<%# Eval("descripcion")%>' Width="380"></asp:Label>
     </ItemTemplate>
                                          
                                         
</asp:TemplateField>

  <asp:TemplateField ControlStyle-Width="35px" HeaderStyle-Width="35px" HeaderText="UNID.">
    <EditItemTemplate>
         <lib:Input ID="unidadEditTextBox" runat="server" BackColor="Transparent"   ReadOnly="true" Text='<%# Eval("unidad")%>' Width="35px" />
    </EditItemTemplate>
           
<FooterTemplate>
         <lib:Input ID="unidadTXT" runat="server" BackColor="Transparent" ReadOnly="true" Width="35px" />
</FooterTemplate>
    <ItemTemplate>
        <asp:Label ID="unidadLabel" runat="server" Text='<%# Eval("unidad")%>'               Width="35px"></asp:Label>
     </ItemTemplate>
                 
        
        
      
 
 
        
        
</asp:TemplateField>
  <asp:TemplateField ControlStyle-Width="80px" HeaderStyle-Width="80px" HeaderText="CANTIDAD" 
                     ItemStyle-HorizontalAlign="Right">
        
            
  <EditItemTemplate>
  
  <table width="100%">
      

  <tr>
      

  <td align="right">Disp: 
      
 
  </td>
      

  <td align="right">
      

  <lib:Input ID="cantidadDispTextBox" runat="server" BackColor="Transparent" 
          ReadOnly="true" Text='<%# Eval("CantidadDisp")%>' Width="75px" />
      

  </td>
      

  </tr>
      

  <tr>
      

  <td>
      

  </td>
      

  <td align="right">
      

   <lib:Input ID="cantidadEditTextBox" runat="server" DataType="Double" 
          onchange="javascript:calcularTotalXCantidadEdit(this);" 
          Text='<%# Eval("cantidad")%>' Width="80" />
      

  </td>
      

  </tr>
      

  </table>
    </EditItemTemplate>
  <FooterTemplate>
     <lib:Input ID="cantidadInsertTextBox" runat="server" DataType="Double" TabIndex="21"
          onchange="javascript:calcularTotalXCantidadInsert(this);"  Width="80" />
    </FooterTemplate>
                
  <ItemTemplate>
          <asp:Label ID="cantidadLabel" runat="server" BackColor="Transparent" 
              Text='<%# Eval("cantidadStr")%>' Width="80" />
          </ItemTemplate>
            
</asp:TemplateField>

<asp:TemplateField ControlStyle-Width="80px" HeaderStyle-Width="100px" 
                     HeaderText="PRECIO SIN IGV" ItemStyle-HorizontalAlign="Right">
                                        
    <ItemTemplate>
        

        <asp:Label ID="precioLabel" runat="server" Text='<%# Eval("precioNoIGVStr")%>' 
            Width="80" />
        

                 </ItemTemplate>
           
<EditItemTemplate>
    
<table>
    
<tr>
    
<td> </td>
    
</tr>
    
<tr>
    
<td>


    


<lib:Input ID="precioEditTextBox" runat="server" BackColor="Transparent" 
        ReadOnly="true" Text='<%# Eval("precioNoIGV")%>' Width="100%" />
    
</td>
    
</tr>
    
</table>
</EditItemTemplate>
   
<FooterTemplate>
    <lib:Input ID="precioInsertTextBox" runat="server"  DataType="Double"  TabIndex="22" Width="100%"
      onchange="javascript:calcularTotalXPrecioInsert(this);"  />
 </FooterTemplate>
</asp:TemplateField>

                 

<asp:TemplateField ControlStyle-Width="100px" HeaderStyle-Width="100px" 
                     HeaderText="PRECIO INCL IGV" ItemStyle-HorizontalAlign="Right">
        
     
                                        
    <ItemTemplate>
        

        <asp:Label ID="precioIGVLabel" runat="server" 
            Text='<%# Eval("precioInclIGVStr")%>' Width="80" />

        

                 </ItemTemplate>
            
<EditItemTemplate>
    
<table>
    
<tr>
    
<td> </td>
    
</tr>
    
<tr>
    
<td>


    


<lib:Input ID="precioIGVEditTextBox" runat="server" BackColor="Transparent" 
        DataType="Double" ReadOnly="true" Text='<%# Eval("precioInclIGV")%>' 
        Width="100%" />
    
</td>
    
</tr>
    
</table>

   
            

 


   
                 </EditItemTemplate>
                 
     <FooterTemplate>
     <lib:Input ID="precioIGVInsertTextBox" runat="server"  TabIndex="23" Width="100%"
        DataType="Double"  onchange="javascript:calcularTotalXPrecioIGVInsert(this);"
         />

 </FooterTemplate>



</asp:TemplateField>
                                        


<asp:TemplateField ControlStyle-Width="100px" HeaderStyle-Width="100px" HeaderText="SUBTOTAL" 
                     ItemStyle-HorizontalAlign="Right">
    

  <EditItemTemplate>
      

  <table>
      

  <tr>
      

  <td align="right"> Disp:

  </td>
      

  <td align="right">
      

   <lib:Input ID="subMontoDispEditTextBox" runat="server" BackColor="Transparent" 
          DataType="Double" ReadOnly="true" Text='<%# Eval("subMontoDisp")%>' 
          Width="75" />
      

  </td>
      

  </tr>
      

  <tr>
      

  <td align="right">
      

  </td>
      

  <td align="right">
      

  <lib:Input ID="subMontoEditTextBox" runat="server" DataType="Double" 
          onchange="javascript:calcularCantidadXTotalEdit(this);" 
          Text='<%# Eval("subMonto")%>' Width="100%" />
      

  </td>
      

  </tr>
  
      
 

  
  </table>
      

                 </EditItemTemplate>
       
                                        
    <ItemTemplate>
     <asp:Label ID="totalLabel" runat="server" Text='<%# Eval("subMontoStr")%>'  Width="80"></asp:Label>
    </ItemTemplate>
     
     <FooterTemplate>
      <lib:Input ID="subMontoInsertTextBox" runat="server"  TabIndex="24" Width="100%"
          DataType="Double"   onchange="javascript:calcularPrecioXTotalInsert(this);" 
           />
     
     </FooterTemplate>

                                        
</asp:TemplateField>


<asp:TemplateField ControlStyle-Width="120px" HeaderStyle-Width="120px" 
                     HeaderText="SUBTOTAL INCL. IGV" ItemStyle-HorizontalAlign="Right">
    

  <EditItemTemplate>
      

  <table>
      
<tr>
    

  <td align="right">
      

  Disp:

  </td>
    

  <td>
      

   <lib:Input ID="subMontoIGVDispEditTextBox" runat="server" BackColor="Transparent" 
          DataType="Double" Font-Size="X-Small" ReadOnly="true" 
          Text='<%# Eval("subMontoDispIGV")%>' Width="85" />
      

  </td>
    

  </tr>
      
<tr>
    
<td> </td>
    
<td align="right">

    



  <lib:Input ID="subMontoIGVEditTextBox" runat="server" DataType="Double" 
        Font-Size="X-Small" onchange="javascript:calcularCantidadXTotalIGVEdit(this);" 
        Text='<%# Eval("subMontoIGV")%>' Width="100%" />
    
</td>
    
</tr>
          

          </table>
            

                 </EditItemTemplate>
      
        
                                        
    <ItemTemplate>
        

        <asp:Label ID="totalSubMontoIGVLabel" runat="server" 
            Text='<%# Eval("subMontoIGVStr")%>' Width="80"></asp:Label>
        

                 </ItemTemplate>
                 
   <FooterTemplate>
    <lib:Input ID="subMontoIGVInsertTextBox" runat="server" 
          DataType="Double"   onchange="javascript:calcularPrecioXTotalIGVInsert(this);" 
          Width="100%" />
   </FooterTemplate>     
        
        
        
        
                                        
</asp:TemplateField>


          

<asp:CommandField ButtonType="Image" CancelImageUrl="~/Images/cancel.gif" 
                     EditImageUrl="~/Images/edit.gif" ShowEditButton="True" 
                     UpdateImageUrl="~/Images/update.gif" />
          
      
          
  <asp:TemplateField>
        
  
  <FooterTemplate>
      
<asp:LinkButton ID="btnAdd" runat="server" ForeColor="Blue" Text="Añadir" OnClick="AddItem" > </asp:LinkButton>
            

                 </FooterTemplate>
                 
        
        
        
        
        
        
        
        
            
                 <ItemTemplate>
                     

                

                     <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                         CommandArgument='<%# Eval("idInternal")%>' ImageUrl="~/Images/delete.gif" 
                         OnClick="Deleteitem" OnClientClick="return confirm('Usted quiere eliminar?')">
                     

                     </asp:ImageButton>
                     

                 </ItemTemplate>
                 
            
   </asp:TemplateField>
                 

                    </Columns>
                    
            
        
                    
 
 

            
        
                        </asp:GridView>
           
                        
 
 
           
                           </ContentTemplate>
                           
                        
                       </asp:UpdatePanel>
                       
        
                    
                       

                               
        
        
       
                   </ContentTemplate>
                   
                   
                   
   
    </asp:TabPanel>
               <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Entrega"  Font-Size="X-Small">
                   
              
                   <ContentTemplate>
                       
                   
                       
                                     
              
                       <asp:Panel ID="panel23" runat="server" font-names="Arial" Font-Size="X-Small">
                 

                   
 
                   


                 

                   <table class="style12">
                       

                       <tr>
                           

                           <td width="200px">
                                

                                Atencion Entrega: </td>
                           

                           <td>
                               

                               <asp:Label ID="atencionLabel" runat="server"></asp:Label>
                               

                           </td>
                           

                       </tr>
                       

                       <tr>
                           

                           <td width="200px">
                                

                                Direccion Entrega mercaderia: </td>
                           

                           <td>
                               

                               <asp:Label ID="direccionEntregaLabel" runat="server"></asp:Label>
                               

                           </td>
                           

                       </tr>
                       

                       <tr>
                           

                           <td width="200px">
                                

                                Direccion Entrega Comprobante: </td>
                           

                           <td>
                               

                               <asp:Label ID="direccionComprabanteLabel" runat="server"></asp:Label>
                               

                           </td>
                           

                       </tr>
                       

                       <tr>
                           

                           <td width="200px">
                                

                                Emisor: </td>
                           

                           <td>
                               

                               <asp:Label ID="emisorLabel" runat="server"></asp:Label>
                               

                           </td>
                           

                       </tr>
                       

                   </table>
                   
</asp:Panel>
                       

                   
                       

                                      

              
                   </ContentTemplate>
                   
                   
                   
              
               </asp:TabPanel>

    
    
    </asp:TabContainer>
      
      
                 </asp:Panel>
  <asp:Panel ID="AddParent" runat="server" CssClass="modalPopup"  Width="800px" >
  <asp:Panel ID="AddParentParent"   runat="server"   Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
  <asp:Panel ID="Panel3" runat="server" Height="400px"  class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
      <uc2:ComparativoItemSeleccionPanel ID="ComparativoItemSeleccionPanel1" 
          runat="server" />
           </asp:Panel>
 <asp:Panel ID="Panel2" runat="server"   >
        
<table width="100%" >
 <tr  >
               
                <td class=" ms-crm-Dialog-Footer-Right">
               
                     <asp:Button ID="aceptarAddButton"  runat="server"  
                     Text="Agregar seleccion"  CssClass="ms-crm-List-Header" OnClick="AddRecurso"
                        OnClientClick="return confirm('Usted quiere Agregar los Recursos?')"
                       />
                    <asp:Button ID="cancelarAddButton"  runat="server" Text="Cancelar" 
                         CssClass="ms-crm-List-Header" 
                    
                       
                       /> 
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 
           


   </asp:Panel>
   </asp:Panel>      
    </form>

</body>
</html>

